package createpattern.builder;

/**
 * 套餐构建者
 * @author seer
 * @date 2018/2/5 17:20
 */
public class MealBuilder {
    public Meal withVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

    public Meal withoutVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
